local shicai = fk.CreateSkill{
    name = "ld__shicai",
    tags = { Skill.Compulsory },
}

shicai:addEffect(fk.Damaged,{
    mute = true,
    can_trigger = function (self, event, target, player, data)
        return target == player and player:hasSkill(shicai.name)
    end,
    on_use = function (self, event, target, player, data)
        local room = player.room
        player:broadcastSkillInvoke(shicai.name)
        if data.damage == 1 then
          room:notifySkillInvoked(player, shicai.name, "masochism")
          player:drawCards(1, shicai.name)
        else
          room:notifySkillInvoked(player, shicai.name, "negative")
          room:askToDiscard(player,{
            min_num = 2,
            max_num = 2,
            include_equip = true,
            skill_name = shicai.name,
            cancelable = false,
          })
        end
      end,
})


Fk:loadTranslationTable{
    ["ld__shicai"] = "恃才",
    [":ld__shicai"] = "锁定技，当你受到伤害后，若此伤害为1点，你摸一张牌，否则你弃置两张牌。",

    ["$ld__shicai1"] = "如此大胜，皆有我一人谋划。",
    ["$ld__shicai2"] = "划谋定计，谁堪与我比较？",
}

return shicai